package com.paat.generate.utils;

import lombok.experimental.UtilityClass;

/**
 * @author qi.ren@paat.com
 * @since 2019/4/18
 */
@UtilityClass
public class StringUtils {

	public String firstUpper(String value) {
		if (null == value || value.isEmpty()) {
			return value;
		}
		char[] ch = value.toCharArray();
		if (ch[0] >= 'a' && ch[0] <= 'z') {
			ch[0] = (char) (ch[0] - 32);
		}
		return new String(ch);
	}

	public static boolean isNotEmpty(String value) {
		return null != value && !value.isEmpty();
	}

}
